package team.archai.nexus.boot.tool;

import org.fusesource.jansi.Ansi;

import static org.fusesource.jansi.Ansi.ansi;

/**
 * @program: tiny-dust-boot-build
 * @description: 控制台打印
 * @author: lishibin
 * @create: 2020-07-29 10:17
 **/
public class Console {

    /**
     * @program: Console
     * @description: 控制台打印字符
     * @author: lishibin
     * @create: 10:21 AM
     **/
    public static void log(String message) {
        System.out.println(Ansi.ansi().render(message));
    }

    /**
     * @program: Console
     * @description: 输出字符
     * @author: lishibin
     * @create: 10:48 AM
     **/
    public static void out(String message) {
        System.out.println(Ansi.ansi().render(message));
    }

    /**
     * @program: Console
     * @description: 打印错误信息 默认 色彩 red
     * @author: lishibin
     * @create: 10:25 AM
     **/
    public static void err(String message) {
        System.out.println(ansi().render("@|RED " + message + "|@"));

    }

    /**
     * @program: Console
     * @description: 打印信息 默认色彩 CYAN
     * @author: lishibin
     * @create: 10:26 AM
     **/
    public static void info(Object message) {
        System.out.println(ansi().render("@|CYAN " + message + "|@"));
    }
}
